﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace IntellectShop.Common
{
	public partial class ScheduleItem
	{
		[ScaffoldColumn(false)]
		public int ScheduleItemID { get; set; }

		[ScaffoldColumn(false)]
		public int CourseID { get; set; }

		[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]
		[DisplayNameLocalized("EventDate")]
		[Required(ErrorMessage = "Event Date is required")]
		public DateTime EventDate { get; set; }

		[DisplayNameLocalized("ScheduleDurationHours")]
		[Range(0, 24, ErrorMessage = "Invalid duration")]
		public int DurationHours { get; set; }

		[DisplayNameLocalized("Note")]
		public string Note { get; set; }
	}
}
